﻿@model WebTV_Kickstarter.Project

@{
    ViewBag.Title = "Project Starten";
    Layout = "~/Views/Shared/_Layout.cshtml";
}



<h2>Project Starten</h2>

@using (Html.BeginForm()) 
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
     
        <hr />
        <h4>Project</h4>
        @Html.ValidationSummary(false)
        
        <div class="form-group">
            @Html.Label("Beheerder", new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.Label((string)ViewBag.UserId)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Title, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Title)
                @Html.ValidationMessageFor(model => model.Title)
            </div>
        </div>

        <div class="form-group">
            <script type="text/javascript">
                (function () {
                    tinyMCE.init({
                        selector: "textarea",
                        theme: "modern",
                        menubar: false,
                        statusbar: true,
                        height: "400",
                        width: "400",
                        verify_html: false,
                        theme_simple_resizing: true,
                        content_css: "@Url.Content("~/Content/Site.css")",
                        convert_urls: false,
                        plugins: [
        "advlist autolink lists link image charmap print preview hr anchor pagebreak",
        "searchreplace wordcount visualblocks visualchars code fullscreen",
        "insertdatetime media nonbreaking save table contextmenu directionality",
        "emoticons  paste textcolor "
                        ],
                        toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
                        toolbar2: "print preview media | forecolor backcolor emoticons",
                    })
                })();
            </script>

            @Html.Label("Informatie Pagina", new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.TextAreaFor(model => model.Description)
                @Html.ValidationMessageFor(model => model.Description)
            </div>
        </div>

        <hr />
        @Html.Partial("Partials/Goal")
        <hr />
   
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Create" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
